package com.liukai.novel_commons.utils;


import android.content.Context;

import com.liukai.novel_commons.db.DBHelper;

public class DBManager {

    private static Context mContext;

    private static final DBManager dbManger = new DBManager(mContext);

    private final DBHelper mDBHelper;

    public static DBManager getDBManager(Context context){
        mContext = context;
        return dbManger;
    }

    private DBManager(Context context){
        mDBHelper = new DBHelper(context);
    }

    public DBHelper getDBHelper(){
        return mDBHelper;
    }

}
